package com.walter;

import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class App extends Application {
    @Override
    public void start(Stage stage) {

        Scene scene = new Scene(testCase());
        stage.setTitle("picker");
        stage.setWidth(800);
        stage.setHeight(400);
        stage.setScene(scene);
        stage.show();
    }

    private Parent testCase() {
//        DateTimePicker parent = new DateTimePicker(LocalDate.of(2022, 11, 21), 12, 11, 11);
//        DateTimePicker parent = new DateTimePicker();
//        DateTimePicker parent = new DateTimePicker(System.currentTimeMillis());
//        TimePicker parent = new TimePicker();
//        TimePicker parent = new TimePicker(12, 12, 12);
        TimePicker parent = new TimePicker(System.currentTimeMillis());
        System.out.println(parent.format("yyy-MM-dd HH:mm:ss"));
        return parent;
    }

    public static void main(String[] args) {
        launch();
    }
}